package com.example.mybatisplusdemo.entity;

import com.baomidou.mybatisplus.activerecord.Model;

import java.io.Serializable;

/**
 * @author Xu Haidong
 * @date 2018/3/29
 */
public class Role extends Model {

    private Long id;

    private String name;

    public Role() {
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public Role(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
